package com.coastline.fruit.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 公共错误码
 *
 * @author Coastline
 * @date 2025-1-8 21:43
 */
@Getter
@ToString
@AllArgsConstructor
public enum CommonErrorInfo implements CoastlineFruitErrorInfo{
    /**
     * 系统内部异常
     */
    SYSTEM_INNER_EXCEPTION("30001001", "Internal system error"),

    /**
     * 缺少必填参数或者必填参数为空
     */
    REQUIRED_PARAMS_MISS_OR_EMPTY("30001002", "Missing or empty required parameters"),

    /**
     * 集合长度超长
     */
    COLLECTION_LENGTH_TOO_LONG("30001004", "The collection length is too long"),

    /**
     * 参数长度超长
     */
    PARAMS_LENGTH_TOO_LONG("30001003", "The parameter length is too long");

    private String errorCode;

    private String errorMessage;
}
